package cn.edu.xmu.wnw.pojo;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;


/**
 * Article entity. @author MyEclipse Persistence Tools
 */

public class Article  implements java.io.Serializable {


    // Fields    

     private Integer id;
     private Category category;
     private SysCategory sysCategory;
     private String title;
     private String content;
     private Date createTime;
     private Date modifyTime;
     private Integer hit;
     private Integer state;
     private Set articleAttachments = new HashSet(0);
     private Set wikis = new HashSet(0);
     private Set articleComments = new HashSet(0);


    // Constructors

    /** default constructor */
    public Article() {
    }

    
    /** full constructor */
    public Article(Category category, SysCategory sysCategory, String title, String content, Date createTime, Date modifyTime, Integer hit, Integer state, Set articleAttachments, Set wikis, Set articleComments) {
        this.category = category;
        this.sysCategory = sysCategory;
        this.title = title;
        this.content = content;
        this.createTime = createTime;
        this.modifyTime = modifyTime;
        this.hit = hit;
        this.state = state;
        this.articleAttachments = articleAttachments;
        this.wikis = wikis;
        this.articleComments = articleComments;
    }

   
    // Property accessors

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }

    public Category getCategory() {
        return this.category;
    }
    
    public void setCategory(Category category) {
        this.category = category;
    }

    public SysCategory getSysCategory() {
        return this.sysCategory;
    }
    
    public void setSysCategory(SysCategory sysCategory) {
        this.sysCategory = sysCategory;
    }

    public String getTitle() {
        return this.title;
    }
    
    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return this.content;
    }
    
    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreateTime() {
        return this.createTime;
    }
    
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return this.modifyTime;
    }
    
    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Integer getHit() {
        return this.hit;
    }
    
    public void setHit(Integer hit) {
        this.hit = hit;
    }

    public Integer getState() {
        return this.state;
    }
    
    public void setState(Integer state) {
        this.state = state;
    }

    public Set getArticleAttachments() {
        return this.articleAttachments;
    }
    
    public void setArticleAttachments(Set articleAttachments) {
        this.articleAttachments = articleAttachments;
    }

    public Set getWikis() {
        return this.wikis;
    }
    
    public void setWikis(Set wikis) {
        this.wikis = wikis;
    }

    public Set getArticleComments() {
        return this.articleComments;
    }
    
    public void setArticleComments(Set articleComments) {
        this.articleComments = articleComments;
    }
   








}